﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000461 RID: 1121
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterFightActivityStageScRsp : IMessage<EnterFightActivityStageScRsp>, IMessage, IEquatable<EnterFightActivityStageScRsp>, IDeepCloneable<EnterFightActivityStageScRsp>, IBufferMessage
	{
		// Token: 0x17000E6A RID: 3690
		// (get) Token: 0x06003269 RID: 12905 RVA: 0x0008A7E7 File Offset: 0x000889E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterFightActivityStageScRsp> Parser
		{
			get
			{
				return EnterFightActivityStageScRsp._parser;
			}
		}

		// Token: 0x17000E6B RID: 3691
		// (get) Token: 0x0600326A RID: 12906 RVA: 0x0008A7EE File Offset: 0x000889EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterFightActivityStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E6C RID: 3692
		// (get) Token: 0x0600326B RID: 12907 RVA: 0x0008A800 File Offset: 0x00088A00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterFightActivityStageScRsp.Descriptor;
			}
		}

		// Token: 0x0600326C RID: 12908 RVA: 0x0008A807 File Offset: 0x00088A07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterFightActivityStageScRsp()
		{
		}

		// Token: 0x0600326D RID: 12909 RVA: 0x0008A810 File Offset: 0x00088A10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterFightActivityStageScRsp(EnterFightActivityStageScRsp other) : this()
		{
			this.fightStageId_ = other.fightStageId_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.groupId_ = other.groupId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600326E RID: 12910 RVA: 0x0008A874 File Offset: 0x00088A74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterFightActivityStageScRsp Clone()
		{
			return new EnterFightActivityStageScRsp(this);
		}

		// Token: 0x17000E6D RID: 3693
		// (get) Token: 0x0600326F RID: 12911 RVA: 0x0008A87C File Offset: 0x00088A7C
		// (set) Token: 0x06003270 RID: 12912 RVA: 0x0008A884 File Offset: 0x00088A84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FightStageId
		{
			get
			{
				return this.fightStageId_;
			}
			set
			{
				this.fightStageId_ = value;
			}
		}

		// Token: 0x17000E6E RID: 3694
		// (get) Token: 0x06003271 RID: 12913 RVA: 0x0008A88D File Offset: 0x00088A8D
		// (set) Token: 0x06003272 RID: 12914 RVA: 0x0008A895 File Offset: 0x00088A95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17000E6F RID: 3695
		// (get) Token: 0x06003273 RID: 12915 RVA: 0x0008A89E File Offset: 0x00088A9E
		// (set) Token: 0x06003274 RID: 12916 RVA: 0x0008A8A6 File Offset: 0x00088AA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x17000E70 RID: 3696
		// (get) Token: 0x06003275 RID: 12917 RVA: 0x0008A8AF File Offset: 0x00088AAF
		// (set) Token: 0x06003276 RID: 12918 RVA: 0x0008A8B7 File Offset: 0x00088AB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06003277 RID: 12919 RVA: 0x0008A8C0 File Offset: 0x00088AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterFightActivityStageScRsp);
		}

		// Token: 0x06003278 RID: 12920 RVA: 0x0008A8D0 File Offset: 0x00088AD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterFightActivityStageScRsp other)
		{
			return other != null && (other == this || (this.FightStageId == other.FightStageId && object.Equals(this.BattleInfo, other.BattleInfo) && this.GroupId == other.GroupId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003279 RID: 12921 RVA: 0x0008A940 File Offset: 0x00088B40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FightStageId != 0U)
			{
				num ^= this.FightStageId.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600327A RID: 12922 RVA: 0x0008A9C7 File Offset: 0x00088BC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600327B RID: 12923 RVA: 0x0008A9CF File Offset: 0x00088BCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600327C RID: 12924 RVA: 0x0008A9D8 File Offset: 0x00088BD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.FightStageId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.FightStageId);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600327D RID: 12925 RVA: 0x0008AA68 File Offset: 0x00088C68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FightStageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FightStageId);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600327E RID: 12926 RVA: 0x0008AAF0 File Offset: 0x00088CF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterFightActivityStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FightStageId != 0U)
			{
				this.FightStageId = other.FightStageId;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600327F RID: 12927 RVA: 0x0008AB80 File Offset: 0x00088D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003280 RID: 12928 RVA: 0x0008AB8C File Offset: 0x00088D8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 8U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.FightStageId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 66U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
					if (num == 72U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040013C9 RID: 5065
		private static readonly MessageParser<EnterFightActivityStageScRsp> _parser = new MessageParser<EnterFightActivityStageScRsp>(() => new EnterFightActivityStageScRsp());

		// Token: 0x040013CA RID: 5066
		private UnknownFieldSet _unknownFields;

		// Token: 0x040013CB RID: 5067
		public const int FightStageIdFieldNumber = 6;

		// Token: 0x040013CC RID: 5068
		private uint fightStageId_;

		// Token: 0x040013CD RID: 5069
		public const int BattleInfoFieldNumber = 8;

		// Token: 0x040013CE RID: 5070
		private SceneBattleInfo battleInfo_;

		// Token: 0x040013CF RID: 5071
		public const int GroupIdFieldNumber = 9;

		// Token: 0x040013D0 RID: 5072
		private uint groupId_;

		// Token: 0x040013D1 RID: 5073
		public const int RetcodeFieldNumber = 1;

		// Token: 0x040013D2 RID: 5074
		private uint retcode_;
	}
}
